<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <?php include_once MvcReg::$_moduleName . '/views/layout/head.php'; ?>
</head>
<body>
<?php include_once MvcReg::$_moduleName . '/views/layout/woody-prompt.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/layout/header.php'; ?>
<div id="main">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <?php include_once MvcReg::$_moduleName . '/views/layout/left_menu.php'; ?>
            </div>
            <div class="col-md-10">
                <div class="right-content">
                    <h3>
                        <ol class="breadcrumb"><li><a href="?md=store&cl=riders&at=riders_audit_list&page=<?php echo $page?>"><i class="fa fa-dashboard"></i><?php echo $menu["breadcrumb_current"]?></a></ol>
                    </h3>
                    <br>
                    <form name="mainform" action="" method="get">
                    <?php echo $hidden_data?>
                    <div class="table-responsive">
                        <div class="panel panel-default">
                            <div class="panel-body form-inline">
                                <div class="form-group">
                                    <label>姓名:</label>
                                    <input type="text" name="_name" value="<?php echo $_name ?>" class="form-control input-sm" placeholder=""/>
                                </div>

                                <div class="form-group">
                                    <label>电话:</label>
                                    <input type="text" name="_phone" value="<?php echo $_phone ?>" class="form-control input-sm" placeholder=""/>
                                </div>
                                <button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-search"></span>立即查询</button>
                                <button type="button" class="btn btn-primary floatright"><a style="color: white" href="?md=store&cl=riders&at=ExportExcel&name=<?php echo $_name ?>&phone=<?php echo $_phone ?>&type=2">汇出</a></button>
                            </div>
                        </div>
                        <table class="table table-hover">
                            <thead>
                            <tr class="info">
                                <th>序</th>
                                <th>骑手姓名</th>
                                <th>性别</th>
                                <th>年龄</th>
                                <th>联系电话</th>
                                <th>服务门店</th>
                                <th>审核</th>
                                <th>状态</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $n = 0;
                            foreach ($rsp_list as $k => $row) {
                                $n++;
                                $item = $n + ($page - 1) * $number_page;
                                $id = $row["id"];

                                switch ($row['sex']){
                                    case 1;
                                        $sex = '男';
                                        break;
                                    case 0;
                                        $sex = '女';
                                        break;
                                };
                                ?>
                                <tr data-id="<?php echo $id?>">
                                    <td><?php echo $item ?></td>
                                    <td><?php echo $row['name'] ?></td>
                                    <td><?php echo $sex ?></td>
                                    <td><?php echo $row['age'] ?></td>
                                    <td><?php echo $row['tel'] ?></td>
                                    <td><?php echo $row['shop_name'] ?></td>
                                    <td><?php echo  '待审核' ?></td>
                                    <td>
                                        <input name="input" value="审核"
                                               onclick="edit('<?php echo $id; ?>', '<?php echo $page; ?>','<?php echo $this_url?>_check')"
                                               type="button" class="btn btn-success btn-sm"/>
                                    </td>
                                </tr>
                            <?php } ?>
                            </tbody>
                        </table>
                        <div class="page">
                                <div class="pagination pull-left">共<?php echo $total_count ?>笔记录</div>
                                <?php if (!empty($rsp_page_list)) echo $rsp_page_list; ?>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php include_once MvcReg::$_moduleName . '/views/layout/footer.php'; ?>
</body>
</html>
